//
//  AppDelegate.swift
//  FastDevelop
//
//  Created by IOS1 on 2025/6/23.
//

import UIKit

@_exported import IQKeyboardManager
@_exported import KakaJSON
@_exported import SnapKit
@_exported import Toast_Swift

@main
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        
        IQKeyboardManager.shared().isEnabled = true
        IQKeyboardManager.shared().shouldResignOnTouchOutside = true
        
        initializeWindow()
        
        return true
    }
    
    
    private func initializeWindow(){
        
        window = UIWindow(frame: UIScreen.main.bounds)
        if let isFirst = UserDefaultsManager.getString(forKey: .first) {
            self.window?.rootViewController = BaseTabBarVC()
        }else{
            self.window?.rootViewController = WelcomeController()
        }
        
        
        self.window?.makeKeyAndVisible()
    }

}

